<%@ Control Language="C#" AutoEventWireup="true" CodeFile="EnhancedFeaturedDentist.ascx.cs" Inherits="includes_EnhancedFeaturedDentist" %>

<table cellpadding="0" cellspacing="0" border="0" width="100%">
  <tr>
                         <td align="left" style="height: 13px">
                             <asp:Literal ID="litPaging" runat="server"></asp:Literal></td>
                     </tr>
                      <tr>
                <td align="center"><asp:Label id="lblMsg" runat="server"></asp:Label></td>
                </tr>
                  <tr>
                    <td align="center" class="bodytxt" style="width: 100%; height: 141px;">                        
                        <asp:GridView BackColor="#B5D6E7" ID="grdEnhancedFeaDocSearch" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                            BorderStyle="None" BorderWidth="0px" CellPadding="5" CssClass="normalgrey_12"
                            DataKeyNames="rating" OnPageIndexChanging="grdEnhancedFeaDocSearch_PageIndexChanging"
                            ShowFooter="True" Width="100%" OnRowCreated="grdEnhancedFeaDocSearch_RowCreated" GridLines="None">                                                       
                            <PagerSettings FirstPageText="First" LastPageText="Last" Mode="NextPrevious"
                                NextPageText="Next" Position="TopAndBottom" PreviousPageText="Previous" />
                            <FooterStyle HorizontalAlign="Left" />
                            <Columns>
                                <asp:TemplateField HeaderText="Name">
                                    <HeaderStyle HorizontalAlign="Left" />
                                    <ItemStyle Width="100px"  VerticalAlign="Top" />
                                    <ItemTemplate >                                    
                                        <%if (frompage.ToString() == "RateDoctors")
                                          {%>
                                        <a class="link-result" href='<%=Session["strHttp"]%>Dentist/RateDentist.aspx?id=<%# Eval("Id") %>'
                                            title="Show Details"><b><u>
                                                <%# Eval("docname") %></u>
                                            </b>
                                            </a>
                                        <%}
                                          else
                                          { %>
                                          <!-- Comented for implement new URL Formate at 17/07/08 by Ranjeet 
                                            <a class="link-result" href='<%=Session["strHttp"]%>Dentist/DentistDetails.aspx?id=<%# Eval("Id") %>'
                                                title="Show Details"><b><u>
                                                    <%# Eval("docname") %></u>
                                                </b></a>-->
                                                
                                                <a class="link-result" href='<%=Session["strHttp"]%>Dentists/<%#lfunction.GetURLFormatById(Convert.ToInt32(Eval("Id")),"Dentist")%>/<%# Eval("Id") %>-<%# Eval("docname") %>.aspx'
                                                title="Show Details"><b><u>
                                                    <%# Eval("docname") %></u>
                                                </b></a>
                                                
                                       <%} %>
                                    </ItemTemplate>
                               
                           
                                </asp:TemplateField>
                                <asp:TemplateField>
                                <ItemStyle Width="10px" />
                                <ItemTemplate>                                
                                </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Address">
                                    <HeaderStyle HorizontalAlign="Left" />
                                    <ItemStyle Width="150px" VerticalAlign="Top" />
                                    <ItemTemplate>
                                        <%#Eval("address")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Specialty / Subspecialty">
                                    <HeaderStyle HorizontalAlign="Left" />
                                    <ItemStyle VerticalAlign="Top" />
                                    <ItemTemplate>
                                        <%#Eval("speciality")%>
                                    </ItemTemplate>
                                   
                                </asp:TemplateField>
                                <asp:BoundField DataField="distance"  HeaderText="Distance (miles)" >                               
                                    <ItemStyle Font-Bold="True" HorizontalAlign="Center" Wrap="False"  />                                    
                                 </asp:BoundField>
                                  <asp:BoundField DataField="rating" HeaderText="Overall Rating" >
                                    <ItemStyle Font-Bold="True" ForeColor="Blue" Wrap="False" />                                    
                                </asp:BoundField>
                               
                               
                                <asp:TemplateField>
                                    <HeaderStyle HorizontalAlign="Left" />
                                    <ItemStyle VerticalAlign="Top" />
                                    <ItemTemplate>                                        
                                        </td></tr><tr>
                                        </tr>
                                            <td colspan="6" style="background-color: White">
                                            </td>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <RowStyle HorizontalAlign="Left" />
                            <PagerStyle BorderStyle="None" HorizontalAlign="Right" VerticalAlign="Top" />
                            <HeaderStyle BackColor="Lavender" />
                        </asp:GridView>
                       </td>
                       </tr>
                          <tr>
                        <td align="left"><asp:Literal ID="litPagingBelow" runat="server"></asp:Literal></td>
                       </tr>
</table>

